﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Drawing;

namespace Paint
{
    class DuongThang:HinhVe
    {
        public DuongThang(HinhVe HV)
        {
            this._bimap = HV.Bimap;
            this._graphics = Graphics.FromImage(this._bimap);
            this._pen = HV.Pen;
        }

        public override void VeHinh()
        {
            Graphics.DrawLine(Pen, new Point(DiemDau.X, DiemDau.Y), 
                                    new Point(DiemCuoi.X, DiemCuoi.Y));
        }
    }
}
